package com.idea.cery.springboot1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author cery
 * 2020/3/12
 */
//指定扫描包
//@SpringBootApplication(scanBasePackages = {"com.idea.cery.springboot.springboot1.dao", "com.idea.cery.springboot.springboot1.controller","com.idea.cery.springboot.springboot1.service"})

@SpringBootApplication
@ServletComponentScan   //Servlet、Filter、Listener可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册
@EnableAsync    //开启异步执行
public class Springboot1Application {

    public static void main(String[] args) {
        SpringApplication.run(Springboot1Application.class, args);
        System.out.println("服务启动完成！");
    }

}
